<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>const常量/只读变量</title>
        <script type="text/javascript">

            /*
                1.常量在定义时，需要赋值
                2.常量赋值后不能修改
             */
            const PI = 3.14;
            //invalid assignment to const 'PI'
            // PI = 1.1;
            console.log("PI=", PI);
        </script>
    </head>
    <body>

    </body>
</html>